package spider.hysrlzy.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

import java.util.Map;

public interface CategoryMapper {

    @Insert("insert into hr_category values (default,#{name},#{pid})")
    @Options(useGeneratedKeys = true, keyProperty = "id", keyColumn = "id")
    int insert(Map<String, String> data);
}
